<template>
 <div class="GoodsTwo">
    <dl v-for="item in list" :key="item.id">
        <dd>
            <van-icon name="https://b.yzcdn.cn/vant/icon-demo-1126.png" />
        </dd>
        <dt>
            <p>
                <span>{{item.user.nick}}</span>
                <span>{{item.goods.goodReputationStr}}</span>
            </p>
            <p>{{item.goods.goodReputationRemark}}</p>
            <ul>
                <li>{{item.goods.dateReputation}}</li>
                <li>{{item.goods.property}}</li>
            </ul>
        </dt>
    </dl>
 </div>
</template>
<script>
export default {
  props: ["goodsid"],
  name: "",
  data() {
    return {
      list: []
    };
  },
  mounted() {
    this.getList();
  },
  methods: {
    async getList() {
      let { data: res } = await this.$http.post(
        "https://api.it120.cc/small4/shop/goods/reputation?goodsId=" +
          this.goodsid
      );
      // console.log(res);
      this.list = res.data;
    }
  },
  computed: {},
  watch: {}
};
</script>

<style scoped>
/* .goodsTwo {
  width: 100%;
  height: 100%;
  overflow: auto;
} */
dl {
  width: 100%;
  height: 100px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
dl > dd {
  width: 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
dl > dt {
  width: 65%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
dl > dt > p > span:nth-child(2) {
  display: inline-block;
  width: 40px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  background-color: red;
  color: aliceblue;
  margin-left: 10px;
  border-radius: 4px;
}
ul {
  width: 100%;
  display: flex;
  align-content: center;
}
.van-icon__image {
  width: 58px;
  height: 58px;
}
</style>